<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <base href="${initParam.domain}">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap -->
    <link href="static/css/bootstrap.min.css" rel="stylesheet">
    <title>文章内容</title>
</head>
<body>
    <div class="container">
    <h1>${article.title}</h1>
    
    <div>
        发布日期: <span>${article.pubdate }</span> 
        作者: <span>${article.author.nickname }</span>
        阅读数: <span>${article.readnum }</span>
        <span> <a href="article/publish?id=${article.id}">编辑</a></span>
    </div>
    <div>${article.description }</div>
    <div>${article.content }</div>
    <c:if test="${not empty article.referes }">
    <fieldset>
        <legend>参考文档</legend>
        <ul class="list-unstyled list-inline">
            <c:forEach items="${article.referes }" var="ro">
                <li><a class="btn btn-default" role="button" href="${ro.url}">${ro.anchor }</a></li>
            </c:forEach>
        </ul>
    </fieldset>
    </c:if>
    </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="static/js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="static/js/bootstrap.min.js"></script>
</body>
</html>